<template>
  <div id="app">
    <h1>{{ msg }}</h1>
    <br />
    <button @click="nz">逆转世界</button>
  </div>
</template>

<script>
export default {
  data() {
    return {
      msg: "Hello,World",
    };
  },

  created() {},

  methods: {
    nz() {
      this.msg = this.msg.split("").reverse().join("");
    },
  },
};
</script>

<style scoped lang='less'>
</style>
